import { Directive, OnInit, ElementRef, Input, Output, EventEmitter, HostListener } from '@angular/core';

@Directive({
    selector: '[appKeyupHost]',
})
export class KeyupDirective implements OnInit {
    @Output() keyup = new EventEmitter<string>();
    @HostListener('mousemove') onkeyup() {
        console.log(11);
        this.keyup.emit();
    }
    constructor(private el: ElementRef) {
        console.log('KeyupDirective Inited');
    }
    ngOnInit() {}
 }
